package com.iqiju.guagua.photo.wx.mini.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel("首页链接对象")
public class FirstPageVO {

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(required = true,notes = "主键id")
    private Long id;

    @ApiModelProperty(required = true,notes = "跳转类型  0表示站内  1表示站外")
    private Integer type;

    @ApiModelProperty(required = true,notes = "跳转地址链接")
    private String url;

    @ApiModelProperty(required = true,notes = "显示图片链接")
    private String picUrl;

    @ApiModelProperty(required = true,notes = "是否插入广告 1插入  0不插入")
    private int haveAd;

    @ApiModelProperty(required = true,notes = "顺序编号（0表示返回按钮）")
    private int orderNum;

    @ApiModelProperty(required = false,notes = "广告列表")
    private List<FirstPageAdVO> adList = new ArrayList<>();

    @ApiModelProperty(required = false,notes = "跳转目标小程序appid (站内跳转时此参数无效) ")
    private String openid;

    @ApiModelProperty(required = true,notes = "备注名称")
    private String remarks;

}
